//************************************************************************
// Book.java         Author:20172330
//
//************************************************************************

public class Book
{
  private String bookname;
  private String author;
  private String press;
  private String copyrightdate;

  //----------------------------------------------------------------------
  // Sets up the Book by its bookname, author, press and copyrightdate.
  //----------------------------------------------------------------------
  public Book(String bookname, String author, String press, String copyrightdate)
  {
   this.bookname = bookname;
    this.author = author;
    this.press = press;
    this.copyrightdate = copyrightdate;
  }

  public String getName()
  {
    return bookname;
  }
 
  public String getAuthor()
  {
   return author;
  }

  public String getPress()
  {
   return press;
  }
 
  public String getDate()
  {
   return copyrightdate;
  }
  
  public void setName(String bookname)
  {
    bookname = bookname;
  }
 
  public void setAuthor(String author)
  {
    author = author;
  }
  
  public void setPress(String press)
  {
    press = press;
  }
 
  public void setDate(String copyrightdate)
  {
    copyrightdate = copyrightdate;
  }
 
  public String toString()
  {
    return "The bookname is " + bookname + "\n" +"The author is " + author + "\n" + "The press is " + press + "\n" + "The copyrightdate is " + copyrightdate;
  }
}

